package org.basis.algorithm.promote.common;

import lombok.Data;

/**
 * 二叉树节点
 *
 * @author Mr_wenpan@163.com 2021/12/12 6:42 下午
 */
@Data
public class TreeNode<T extends Comparable<T>> {
    public T data;
    public TreeNode<T> left;
    public TreeNode<T> right;

    public TreeNode() {
    }

    public TreeNode(T data) {
        this.data = data;
    }
}